package com.platform.api.dao;

import org.apache.ibatis.annotations.Mapper;

import com.platform.api.entity.CategoryVo;
import com.platform.common.dao.BaseDao;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


/**
 * @author lipengjun
 * @email 939961241@qq.com
 * @gitee https://gitee.com/fuyang_lipengjun/platform
 * @date 2017-08-11 09:14:25
 */
@Mapper
@Repository
public interface ApiCategoryMapper<CategoryVo>{// extends BaseDao<CategoryVo> {
    int save(CategoryVo t);

    void save(Map<String, Object> map);

    void saveBatch(List<CategoryVo> list);

    int update(CategoryVo t);

    int update(Map<String, Object> map);

    int delete(Object id);

    int delete(Map<String, Object> map);

    int deleteBatch(Object[] id);

    CategoryVo queryObject(Object id);

    List<CategoryVo> queryList(Map<String, Object> map);

    List<CategoryVo> queryList(Object id);

    int queryTotal(Map<String, Object> map);

    int queryTotal();
}
